package com.github.sbb.sherry.primitives.config.fetcher;

import com.github.sbb.sherry.common.primitives.StringUtil;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@NoArgsConstructor
@ToString
public class HttpAuth {

  private String username;
  private String password;

  public boolean isValid() {
    return StringUtil.hasText(username) && StringUtil.hasText(password);
  }
}
